<?php
session_start();


require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/QuestionComment.php';


$info=array();
array_push($info, $_POST);

if(isset($info[0]['comment']) && isset($info[0]['edited']) && isset($info[0]['id'])){

	$qcomm1=new QuestionComment($info[0]['comment'], $info[0]['edited'], $info[0]['id'], $_SESSION['userID'], $_SESSION['projectID']);
	$qcomm1->storeComment();
	unset($qcomm1);

	echo $info[0]['comment'];

}












?>